//
//  ZCBasePresenter.m
//  xfb
//
//  Created by Fearless on 2021/10/21.
//  Copyright © 2021 XFB. All rights reserved.
//

#import "ZCBasePresenter.h"

@implementation ZCBasePresenter

/// 初始化
/// @param view 要绑定的视图
- (instancetype)initWithView:(id)view {
    if (self = [super init]) {
        _view = view;
    }
    return _view;
}

/// 绑定视图
/// @param view 要绑定的视图
- (void)attachView:(id)view {
    _view = view;
}

/// 解绑视图
/// @param view 要解绑的视图
- (void)deleteAttachView:(id)view {
    _view = nil;
}

// MARK: - dealloc
- (void)dealloc {
    NSLog(@"%s", __func__);
}

@end
